//
//  EpointTestiChartjsViewController.m
//  EpointFrame5
//
//  Created by 李亚春 on 14-3-20.
//  Copyright (c) 2014年 Epoint. All rights reserved.
//

#import "EpointTestiChartjsViewController.h"


@interface EpointTestiChartjsViewController ()
{
    UIWebView *wv;
}
@end

@implementation EpointTestiChartjsViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.

    
    wv = [[UIWebView alloc]initWithFrame:self.getFullContentFrame];
    wv.backgroundColor = [UIColor clearColor];
    [self.view addSubview:wv];
    
    [wv setUserInteractionEnabled:YES];
//    wv.scalesPageToFit =YES;
    [wv setBackgroundColor:[UIColor clearColor]];
    [wv setOpaque:NO];//使网页透明
    
    NSURL *url = [NSURL URLWithString:@"ichartjs/samples/index.html"
                        relativeToURL:[[NSBundle mainBundle] bundleURL]];
//    NSURL *url = [NSURL URLWithString:@"RGraph/default.html"
//                        relativeToURL:[[NSBundle mainBundle] bundleURL]];
    
//    NSString *filePath = [[NSBundle mainBundle]pathForResource:@"bar2d_03.html" ofType:nil];
    NSURLRequest *request = [[NSURLRequest alloc]initWithURL:url];
    [wv loadRequest:request];
//    NSString *htmlString = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
//    [wv loadHTMLString:htmlString baseURL:[NSURL URLWithString:filePath]];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
